package com.itheima.service;


import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Member;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Transactional
public interface MemberService {


    PageResult findPage(QueryPageBean queryPageBean);

    Member findByTelephone(String telephone);

    void add(Member member) ;

    List<Integer> findMemberCountByMonths(List<String> months);
    Result findMemberCount();

    void edit(Member member);

    Member findById(Integer id);

    void deleteById(Integer id);

    Map<String, List> findNumber() throws Exception;
}
